package com.asktgapp.model;

import com.asktgapp.base.BaseItem;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * time:2018/2/1
 * Create By ZhaoKai
 * Email: dczk@foxmail.com
 * Description:
 */

public class IndexVO extends BaseItem {


    /**
     * bannerList : [{"id":4,"title":"测试","type":2,"pic":"http://test.biuwork.com:80/jiangong/downloadFile.do?id=27a54f31-9fc4-47ef-a780-853a71661b5d","isHomepage":1,"status":1,"skipType":null,"path":""},{"id":5,"title":"哈哈","type":2,"pic":"http://test.biuwork.com:80/jiangong/downloadFile.do?id=579d921e-c54b-48cd-a1eb-1c60a2d7d257","isHomepage":1,"status":1,"skipType":null,"path":""},{"id":6,"title":"按时","type":2,"pic":"http://test.biuwork.com:80/jiangong/downloadFile.do?id=df212bf0-957b-45dc-bfc7-96bfd50eb792","isHomepage":1,"status":1,"skipType":null,"path":""}]
     * questionList : [{"qUersName":"18221022803","aLabel":"帅,能干","qId":1,"aUserName":"hjd","aId":1,"aUserPic":"http://test.biuwork.com:80/jiangong/downloadFile.do?id=0e5cf42d-94fa-4d58-bbb0-6be52639c88e","aContent":"啊啊啊啊啊","qContent":"哈哈哈哈哈哈哈哈","qUserPic":"http://test.biuwork.com:80/jiangong/downloadFile.do?id=0e5cf42d-94fa-4d58-bbb0-6be52639c88e","likeNumber":0,"isAnswer":1,"addTime":"2018.01.31 13:19:24"}]
     * questionInfo : 问题首页配置
     * projectInfo : 工程师首页配置
     */

    private String questionInfo;
    private String projectInfo;
    private List<BannerListBean> bannerList;
    private List<QuestionListBean> questionList;

    public String getQuestionInfo() {
        return questionInfo == null ? "每天100000个挖掘机故障" : questionInfo;
    }

    public void setQuestionInfo(String questionInfo) {
        this.questionInfo = questionInfo;
    }

    public String getProjectInfo() {
        return projectInfo == null ? "及时连线，专业解答，一对一精准服务" : projectInfo;
    }

    public void setProjectInfo(String projectInfo) {
        this.projectInfo = projectInfo;
    }

    public List<BannerListBean> getBannerList() {
        if (bannerList == null) {
            return new ArrayList<>();
        }
        return bannerList;
    }

    public void setBannerList(List<BannerListBean> bannerList) {
        this.bannerList = bannerList;
    }

    public List<QuestionListBean> getQuestionList() {
        return questionList;
    }

    public void setQuestionList(List<QuestionListBean> questionList) {
        this.questionList = questionList;
    }

    public static class BannerListBean {
        /**
         * id : 4
         * title : 测试
         * type : 2
         * pic : http://test.biuwork.com:80/jiangong/downloadFile.do?id=27a54f31-9fc4-47ef-a780-853a71661b5d
         * isHomepage : 1
         * status : 1
         * skipType : null
         * path :
         */

        @SerializedName("id")
        private int idX;
        private String title;
        private int type;
        private String pic;
        private int isHomepage;
        private int status;
        private int skipType;
        private String path;

        public int getIdX() {
            return idX;
        }

        public void setIdX(int idX) {
            this.idX = idX;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getIsHomepage() {
            return isHomepage;
        }

        public void setIsHomepage(int isHomepage) {
            this.isHomepage = isHomepage;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getSkipType() {
            return skipType;
        }

        public void setSkipType(int skipType) {
            this.skipType = skipType;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }
    }

    public static class QuestionListBean {
        /**
         * qUersName : 18221022803
         * aLabel : 帅,能干
         * qId : 1
         * aUserName : hjd
         * aId : 1
         * aUserPic : http://test.biuwork.com:80/jiangong/downloadFile.do?id=0e5cf42d-94fa-4d58-bbb0-6be52639c88e
         * aContent : 啊啊啊啊啊
         * qContent : 哈哈哈哈哈哈哈哈
         * qUserPic : http://test.biuwork.com:80/jiangong/downloadFile.do?id=0e5cf42d-94fa-4d58-bbb0-6be52639c88e
         * likeNumber : 0
         * isAnswer : 1
         * addTime : 2018.01.31 13:19:24
         */

        private String qUersName;
        private String aLabel;
        private int qId;
        private String aUserName;
        private int aId;
        private String aUserPic;
        private String aContent;
        private String qContent;
        private String qUserPic;
        private int likeNumber;
        private int isAnswer;
        private String addTime;
        private String aRealName;
        private int aUserId;

        public int getaUserId() {
            return aUserId;
        }

        public void setaUserId(int aUserId) {
            this.aUserId = aUserId;
        }

        public String getaRealName() {
            return aRealName;
        }

        public void setaRealName(String aRealName) {
            this.aRealName = aRealName;
        }

        public String getQUersName() {
            return qUersName;
        }

        public void setQUersName(String qUersName) {
            this.qUersName = qUersName;
        }

        public String getALabel() {
            return aLabel;
        }

        public void setALabel(String aLabel) {
            this.aLabel = aLabel;
        }

        public int getQId() {
            return qId;
        }

        public void setQId(int qId) {
            this.qId = qId;
        }

        public String getAUserName() {
            return aUserName;
        }

        public void setAUserName(String aUserName) {
            this.aUserName = aUserName;
        }

        public int getAId() {
            return aId;
        }

        public void setAId(int aId) {
            this.aId = aId;
        }

        public String getAUserPic() {
            return aUserPic;
        }

        public void setAUserPic(String aUserPic) {
            this.aUserPic = aUserPic;
        }

        public String getAContent() {
            return aContent;
        }

        public void setAContent(String aContent) {
            this.aContent = aContent;
        }

        public String getQContent() {
            return qContent;
        }

        public void setQContent(String qContent) {
            this.qContent = qContent;
        }

        public String getQUserPic() {
            return qUserPic;
        }

        public void setQUserPic(String qUserPic) {
            this.qUserPic = qUserPic;
        }

        public int getLikeNumber() {
            return likeNumber;
        }

        public void setLikeNumber(int likeNumber) {
            this.likeNumber = likeNumber;
        }

        public int getIsAnswer() {
            return isAnswer;
        }

        public void setIsAnswer(int isAnswer) {
            this.isAnswer = isAnswer;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }
    }
}
